package com.allan.springboot_wms.req;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

public class OutSaveReq {
    private Integer outNum;

    @NotEmpty(message = "【名称】不能为空")
    private String outName;

    private Integer outSum;

    private BigDecimal purchasePrice;

    private BigDecimal sellingPrice;

    private BigDecimal profit;

    private Date datetime;

    public Integer getOutNum() {
        return outNum;
    }

    public void setOutNum(Integer outNum) {
        this.outNum = outNum;
    }

    public String getOutName() {
        return outName;
    }

    public void setOutName(String outName) {
        this.outName = outName;
    }

    public Integer getOutSum() {
        return outSum;
    }

    public void setOutSum(Integer outSum) {
        this.outSum = outSum;
    }

    public BigDecimal getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(BigDecimal purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public BigDecimal getSellingPrice() {
        return sellingPrice;
    }

    public void setSellingPrice(BigDecimal sellingPrice) {
        this.sellingPrice = sellingPrice;
    }

    public BigDecimal getProfit() {
        return profit;
    }

    public void setProfit(BigDecimal profit) {
        this.profit = profit;
    }

    public Date getDatetime() {
        return datetime;
    }

    public void setDatetime(Date datetime) {
        this.datetime = datetime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", outNum=").append(outNum);
        sb.append(", outName=").append(outName);
        sb.append(", outSum=").append(outSum);
        sb.append(", purchasePrice=").append(purchasePrice);
        sb.append(", sellingPrice=").append(sellingPrice);
        sb.append(", profit=").append(profit);
        sb.append(", datetime=").append(datetime);
        sb.append("]");
        return sb.toString();
    }
}